import {
    createRouter,
    createWebHistory,
} from "vue-router";

// 路由类型:RouteRecordRaw
const routes = [{
        path: "/",
        component: () => import("../view/index.vue"),
        children: [{
                path: '/',
                component: () => import('../view/one/index.vue')
            }, {
                path: '/tow',
                component: () => import('../view/tow/index.vue')
            },
            {
                path: '/stree',
                component: () => import('../view/stree/index.vue')
            },
            {
                path: '/four',
                component: () => import('../view/four/index.vue')
            },
            {
                path: '/five',
                component: () => import('../view/five/index.vue')
            },
            {
                path: '/setting',
                component: () => import('../view/setting/index.vue')
            }, {
                path: '/IndexMove',
                component: () => import('../view/Move/index.vue') //移动端首页
            }, {
                path: '/EventDetails',
                component: () => import('../view/EventDetails/index.vue') //这个是事件详情
            }, {
                path: '/EventDetailss',
                component: () => import('../view/EventDetailss/index.vue') //这个是事件详情
            }, {
                path: '/DataSearch',
                meta: {
                    keepAlive: true
                },
                component: () => import('../view/DataSearch/index.vue') //这个是事件查搜
            }, {
                path: '/DataSearchIndex',
                meta: {
                    keepAlive: true
                },
                component: () => import('../view/DataSearchIndex/index.vue'), //这个是事件查搜

            }, {
                path: '/ChangePassword',
                component: () => import('../view/ChangePassword/index.vue') //这个是修改密码
            }, {
                path: '/UseHelp',
                component: () => import('../view/UseHelp/index.vue') //这个是修改密码
            }, {
                path: '/EChart',
                component: () => import('../view/EChart/index.vue') //这个是修改密码
            }, {
                path: '/LoginMove',
                component: () => import('../view/LoginMove/index.vue') //这个是修改密码
            }, {
                path: '/GatherIngredients',
                component: () => import('../view/GatherIngredients/index.vue') //这个是修改密码
            }, {
                path: '/DataAnalysis',
                component: () => import('../view/DataAnalysis/index.vue') //这个是修改密码
            }
        ]
    },
    {
        path: '/Login',
        component: () => import('../view/Login/index.vue') //这个是修改密码
    }
];

const router = createRouter({
    // 路由模式
    history: createWebHistory(),
    routes,
});

export default router;